package cn.kgc.easybuy.dao;

import cn.kgc.easybuy.pojo.News;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Mapper
@Repository
public interface NewsMapper {
    int delNews(Integer id);

    int updateNews(News news);

    int addNews(News news);

    News selectNewsById(Integer id);

    List<News> selectNewsByPage(Map<String,Object> params);
}
